﻿<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="newsletter-template-details.aspx.cs" Inherits="admin_newsletter_template_details"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <asp:ValidationSummary ID="valSummary" runat="server" ShowSummary="false" HeaderText="you have missed the following items:"
        EnableClientScript="true" ShowMessageBox="true" />
    <asp:Panel ID="panalForm" runat="server" DefaultButton="btnSave">
        <table width="100%">
            <tr>
                <td height="30px">
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="lblCRUDMessege" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="adminPageContent" style="width: 800px">
                        <table cellpadding="0" cellspacing="5" width="100%" border="0">
                            <tr>
                                <td colspan="2">
                                    <h4>
                                        Newsletter Template</h4>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="btnSave2" Width="100" runat="server" Text="Save" OnClick="btnSave_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td width="100px">
                                    Template Subject
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtTemplateId" runat="server" Width="250" Visible="false"></asp:TextBox>
                                    <asp:TextBox ID="txtTemplateName" runat="server" Width="250"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvTemplateName" runat="server" ControlToValidate="txtTemplateName"
                                        Display="None" ErrorMessage="template name" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">
                                    Template Body
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:TextBox runat="server" ID="tbTemplateDesign" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="btnSave" runat="server" Width="100" Text="Save" OnClick="btnSave_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td height="30px">
                </td>
            </tr>
        </table>
    </asp:Panel>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%= tbTemplateDesign.ClientID %>').ckeditor();
        });
    </script>
</asp:Content>
